package com.springBoot.entity;

import java.time.LocalDateTime;

public class BaseEntity {

    //创建时间
    private LocalDateTime createDateTime;
    //更新时间
    private LocalDateTime lastModifiedDateTime;
    //更改人
    private String lastModifiedBy;
    //删除标记
    private Boolean deleteFlag;
    //创始人
    private String createBy;
    //应用对象id
    private String objId;
    //应用对象所属租户id
    private String orgId;
    //所属人
    private String ownerId;

    public BaseEntity(){
        LocalDateTime now = LocalDateTime.now();
        this.createDateTime = now;
        this.lastModifiedDateTime = now;
        this.deleteFlag = Boolean.FALSE;
    }

    public LocalDateTime getCreateDateTime() {
        return createDateTime;
    }

    public void setCreateDateTime(LocalDateTime createDateTime) {
        this.createDateTime = createDateTime;
    }

    public LocalDateTime getLastModifiedDateTime() {
        return lastModifiedDateTime;
    }

    public void setLastModifiedDateTime(LocalDateTime lastModifiedDateTime) {
        this.lastModifiedDateTime = lastModifiedDateTime;
    }

    public String getLastModifiedBy() {
        return lastModifiedBy;
    }

    public void setLastModifiedBy(String lastModifiedBy) {
        this.lastModifiedBy = lastModifiedBy;
    }

    public Boolean getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Boolean deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getObjId() {
        return objId;
    }

    public void setObjId(String objId) {
        this.objId = objId;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }
}
